import request from '@/utils/request'

// 查询项目维护列表
export function listMainten(query) {
  return request({
    url: '/system/mainten/list',
    method: 'get',
    params: query
  })
}

// 查询项目维护详细
export function getMainten(maintenId) {
  return request({
    url: '/system/mainten/' + maintenId,
    method: 'get'
  })
}

// 新增项目维护
export function addMainten(data) {
  return request({
    url: '/system/mainten',
    method: 'post',
    data: data
  })
}

// 修改项目维护
export function updateMainten(data) {
  return request({
    url: '/system/mainten',
    method: 'put',
    data: data
  })
}

// 删除项目维护
export function delMainten(maintenId) {
  return request({
    url: '/system/mainten/' + maintenId,
    method: 'delete'
  })
}
